// TODO:标签相关的接口
import { createAPI } from '@/utils/request'

// 获取标签列表
export const getTagsList = data => createAPI('/tags', 'get', data)

// 根据id删除标签
export const deleteTags = data => createAPI(`/tags/${data.id}`, 'delete', data)

// // 添加标签
export const addTags = data => createAPI('/tags', 'post', data)

// 根据id修改标签
export const updateTags = data => createAPI(`/tags/${data.id}`, 'put', data)

// // 获取学科列表
// export const getSubjects = data => createAPI('/subjects', 'get', data)

// 标签状态
export const tagsState = data => createAPI(`/tags/${data.id}/${data.state}`, 'post', data)

// 获取学科简单列表
export const getSubjects = data => createAPI('/subjects/simple', 'get', data)

// 获取标签详情
export const getTagsDetails = data => createAPI(`/tags/${data.id}`, 'get', data)
